package com.itheima.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Xiao
 * @date 2021/10/6
 */
@RestController
@RequestMapping("/hello")
public class HelloWorldController {
    @GetMapping
    public String testHello() {
        System.out.println("hello world, 我爱Java！！！");
        return "Are You OK ?";
    }
}
